
var label = {
    en: {
        type: 'en',
        label01: 'Login to get free WFee candy',
        label02: 'WFee is decentralized WiFi sharing technology based on blockchain technology, which is also the word’s first blockchain project based on WiFi. ',
        label03: 'New user can get reward of 50 WFee. Invite a friend to get 50WFee. The limit of accumulated rewards is up to 550 WFee.',
        label04: 'Get more info about WFee',
        label05: 'Email：',
        label06: 'Type in email to receive verification code.',
        label07: '<span style="font-size: 14px;">SMS code：</span>',
        label08: 'Access code',
        label09: 'Login',
        label10: 'Exit login',
        label11: 'Current WFee:',
        label12: '',
        label13: 'People Invited: ',
        label14: '',
        label15: 'WFee received through invitation: ',
        label16: '',
        label17: 'WFee candy distribution event is finished. Airdrop is still in process. Please pay attention to the next event',
        label18: 'Invite friends to get more rewards ',
        label19: 'Copy invitation link',
        label20: 'Fill out Ethereum address',
        label21: '',
        label22: 'Submit',
        label23: 'Follow us',
        label24: 'WeChat',
        label25: 'Official Website',
        label26: 'Enter your email',
        label27: 'Please enter a correct email ',
        label28: 'Get verification code',
        label29: 'Verification code has been sent to your email\n',
        label30: 'Enter your verification code',
        label31: 'Replicating success ',
        label32: 'Replicating failed ',
        label33: 'My Ethereum address:',
        label34: 'Airdrop is still in progress. If you haven\'t received the token, please wait patiently',
        label35: 'Please fill out Ethereum address',
        label36: 'Please fill out the correct Ethereum address',
        label37: 'You provided a wrong wallet, please check again.',
        label38: 'This address has already got WFee, please try a new address',
        label39: 'Error',
        label40: 'Submit',
        label41: 'Your wallet address:',
        label42: 'After submitting the address, you cannot change it anymore, please make sure it’s correct.',
        label43: 'Submit',
        label44: 'Submit',
        label45: 'Attention: Please use imtoken or other Ethereum address, which supports ERC-20 contract.',
        label46: 'One address can only get WFee once.',
        label47: 'After filling out the address, you cannot change it anymore.',
        label48: 'imtoken tutorial',
        label49: 'The candy distribution event will end on March 2. Airdrop starts after the event and will continue afterwards.',
        label50: 'The candy distribution event will end on March 2',
        label51: 'Airdrop starts after the event and will continue afterwards.',
        label52: 'WFee candy distribution event is finished. Airdrop is still in process. Please pay attention to the next event',
        label53: 'Users with an account may log in and check WFee you have obtained',
        label54: 'END',
        label55: '',
        label56: '',
        label57: '',
        label58: ''
    },
    zh: {
        type: 'zh',
        label01: '登录免费领WFee糖果',
        label02: 'WFee--是基于区块链技术去中心化的WiFi共享生态技术，世界第一个基于WiFi的区块链项目。',
        label03: '首次登录可获得50WFee奖励；单次邀请好友可获得50WFee，累积奖励最高上限550WFee',
        label04: '了解WFee项目详情',
        label05: '邮箱：',
        label06: '输入邮箱接收动态验证码',
        label07: '验证码：',
        label08: '获取验证码',
        label09: '登录',
        label10: '退出登录',
        label11: '当前WFee：',
        label12: '个',
        label13: '已邀请：',
        label14: '人',
        label15: '邀请获得WFee：',
        label16: '个',
        label17: '本期活动已经结束，空投正在陆续发放，请期待下一次的糖果活动',
        label18: '邀请好友获取更多奖励：',
        label19: '复制邀请链接',
        label20: '填写以太坊地址',
        label21: '',
        label22: '提交',
        label23: '关注我们',
        label24: '微信',
        label25: '官网',
        label26: '请填写邮箱',
        label27: '请填写正确邮箱',
        label28: '获取验证码',
        label29: '获取成功，请查看邮箱',
        label30: '请填写验证码',
        label31: '复制成功',
        label32: '复制失败',
        label33: '我的以太坊地址',
        label34: '空投正在陆续发放，没收到的用户请耐心等待',
        label35: '请填写以太坊地址',
        label36: '请填写正确以太坊地址',
        label37: '钱包地址有误，请核对后重新输入',
        label38: '该钱包地址已领取过糖果，请更换地址重试',
        label39: '请求出错',
        label40: '确认提交',
        label41: '您的钱包地址:',
        label42: '地址提交后将不能更改，请确认无误后提交',
        label43: '取消',
        label44: '确定提交',
        label45: '注：请使用imtoken等支持ERC-20合约的以太坊钱包地址。',
        label46: '一个钱包地址只能领取一次糖果。',
        label47: '钱包地址填写完成后，不能更改。',
        label48: 'imtoken教程',
        label49: '糖果活动将在3.2结束，空投将在活动结束后陆续发放',
        label50: '糖果活动将在3.2结束',
        label51: '空投将在活动结束后陆续发放',
        label52: '本期活动已经结束，空投正在陆续发放，请期待下一次的糖果活动',
        label53: '老用户可以登录查看获得的WFee数量',
        label54: '已结束',
        label55: '',
        label56: '',
        label57: '',
        label58: ''
    }
}

var getLang = function (value) {
    if (value) {
        return label[value];
    }
    var type = navigator.appName;
    if (type == "Netscape"){
        var lang = navigator.language;//获取浏览器配置语言，支持非IE浏览器
    }else{
        var lang = navigator.userLanguage;//获取浏览器配置语言，支持IE5+ == navigator.systemLanguage
    };
    var lang = lang.substr(0, 2);//获取浏览器配置语言前两位
    if (lang == "zh"){
        return label['zh'];
    } else{
        return label['en'];
    };
}